import { useCookies } from '@vueuse/integrations/useCookies'
const Cluster = "k8s_cluster"
const ClusterNum = "cluster_num"
const cookie = useCookies()

// 获取cluster
export function getCluster(){
    return cookie.get(Cluster)
}

// 设置cluster
export function setCluster(cluster){
    return cookie.set(Cluster,cluster)
}

// 清除cluster
export function removeCluster(){
    return cookie.remove(Cluster)
}


// 获取cluster_num
export function getClusterNum(){
    return cookie.get(ClusterNum)
}

// 设置cluster
export function setClusterNum(clusterNum){
    return cookie.set(ClusterNum,clusterNum)
}

// 清除cluster
export function removeClusterNum(){
    return cookie.remove(ClusterNum)
}